﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ECSE6770
{
    public class CartItemWrapper
    {
        public CartItemWrapper(Product p)
        {
            this.Id = p.Id;
            this.Teaser = p.Teaser;
            this.Price = p.Price;
        }

        public int Id { get; private set; }

        public string Teaser { get; private set; }

        public decimal Price { get; private set; }

        public string PriceString()
        {
            return String.Format("{0:c}", this.Price);
        }
    }
}